import Vue from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'

Vue.config.productionTip = false

//引入基础样式
import '@/assets/styles/index.scss'

//淘宝适配
import 'lib-flexible'

//引入全局注册组件
import "@/components"

//vant 组件
import Vant from "vant";
import 'vant/lib/index.css';

Vue.use(Vant);

//引入api中的ajax/axios封装
import { axios,baseURL } from '@/api/http'
Vue.prototype.$axios = axios;
Vue.prototype.$host = baseURL;

import {ajax} from '@/api/index'
Vue.prototype.$ajax = ajax

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
